package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {

    @GetMapping("/m1")
    public void m1() throws InterruptedException {
        System.out.println("模拟业务操作 m1...");
        Thread.sleep(3000l);
    }

    @GetMapping("/m2")
    public void m2() throws InterruptedException {
        System.out.println("模拟业务操作 m2...");
        Thread.sleep(6000l);
    }

    @GetMapping("/m3")
    public void m3() throws InterruptedException {
        System.out.println("模拟业务操作 m3...");
        Thread.sleep(5000l);
    }
}
